#!/bin/bash

[ -e /tmp/db ] && echo exist db || echo no db
[ -f /tmp/db ] && echo exist db file || echo no db file
[ -d /tmp/db ] && echo exist db dir || echo no db dir
echo $0 | awk -F. '{print $NF}'
echo $(dirname $0)
echo $(basename $0)
